<?php 
	$this->jQuery()
	    ->addJavascriptFile('/js/formulaire.js')
	    ->addJavascriptFile('/js/datatables/media/js/jquery.dataTables.min.js')
		->addStylesheet($this->baseUrl('/css/formulaire.css'))
		->addStylesheet($this->baseUrl('/js/datatables/media/css/demo_table.css'))
	    ->addOnLoad('
	        var icons = {
    			header: "ui-icon-circle-arrow-e",
    			headerSelected: "ui-icon-circle-arrow-s"
    		};
	        $("#accordion").accordion({
		    	collapsible: true,
	            icons: icons,
	            fillSpace: true,
	    	});
	        
	        $("#test").dataTable({
                bJQueryUI: true
            }); 
	    ');
	echo $this->render("actions/editer.phtml");
?>
<div id="entire">
	<div class="tit_bot">
    	<div class="tit">
			<h1><span class="tit_span"><?php echo $this->miettes(" - ")?>&nbsp;</span></h1>
	    </div>
      	<div class="text">
      		Affichage de ma saison<br />
      		<?php echo $this->form; ?>
   	  	</div>
	</div>
</div>	
<?php echo $this->render("actions/editer.phtml");?>
<br />
<div id="accordion">
    <h3><a href="#"><?php echo __("Membres de la saison")?></a></h3>
    <div>
        <p>
            <table id="test" width="100%">
                <thead>
                    <tr>
                        <th>Id</th>
                        <th>Nom</th>
                        <th>Prénom</th>
                        <th>Tel Port</th>
                        <th>Tel Fixe</th>
                        <th>Mail</th>
                        <th>Age</th>
                        <th>Photo</th>
                    </tr>
                </thead>
                <tbody>
                    <?php foreach( $this->membres as $membre) : ?>
                    <tr class="<?php echo ($membre->getAge()<18 ? "mineur" : "");?>">
                        <td style="padding: 2px 5px;"><?php echo $membre->getId();?></td>
                        <td style="padding: 2px 5px;"><?php echo $membre->getNom();?></td>
                        <td style="padding: 2px 5px;"><?php echo $membre->getPrenom();?></td>
                        <td style="padding: 2px 5px;"><?php echo $membre->getTelephonePortable();?></td>
                        <td style="padding: 2px 5px;"><?php echo $membre->getTelephoneFixe();?></td>
                        <td style="padding: 2px 5px;"><?php echo $membre->getMail();?></td>
                        <td style="padding: 2px 5px;"><?php echo $membre->getAge();?></td>
                        <td style="padding: 2px 5px;"><?php echo ($membre->getAutoriserPublication() ? __("Oui") : __("Non"));?></td>
                    </tr>
                    <?php endforeach;?>
                </tbody>
            </table>
        </p>
    </div>
</div>